package org.springframework.security.access.prepost;

import java.lang.annotation.*;

/**
 * 重写此注解，以便组件可以在不依赖安全框架下使用此注解
 * 
 * @author 张智研
 * @date 2022/09/01 10:56
 */
@Target({ElementType.METHOD, ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Inherited
@Documented
public @interface PreAuthorize {

    /**
     * @return the Spring-EL expression to be evaluated before invoking the protected method
     */
    String value();

}
